-- GENERATED SPELL FOR [Spectral Assassin] --


function spell0_16066(pUnit, Event) --@Defile,n/a--
pUnit:FullCastSpellOnTarget(27177,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16066', 10000, 1)
end

function spell1_16066(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(18663,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16066', 661, 1)
end

function Sorts_16066(pUnit, Event)
local choix_sorts_16066 = math.random(0, 1)
if choix_sorts_16066 == 0 then
pUnit:RegisterEvent('spell0_16066', 1, 1)
end
if choix_sorts_16066 == 1 then
pUnit:RegisterEvent('spell1_16066', 1, 1)
end
end

function mob16066_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16066', math.random(1500, 3000), 1)
end

function mob16066_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16066_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16066_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16066, 1, 'mob16066_Action')
RegisterUnitEvent(16066, 2, 'mob16066_Leave')
RegisterUnitEvent(16066, 3, 'mob16066_Kill')
RegisterUnitEvent(16066, 4, 'mob16066_Die')
